package com.eascs.workflow.common.entity.wf;

import javax.persistence.*;
import java.io.Serializable;
import java.util.Date;

/**
 * 流程节点
 */
@Entity
@Table(name = "wf_task_node_auditors")
public class TaskNodeAuditor implements Serializable {
	private static final long serialVersionUID = 1L;

	/** 审核状态 0-审核中,1-待审核,2-审核通过,3-驳回 */
	/** 审核中 */
	public static final int AUDITOR_STATUS_AUDITING = 0;
	/** 待审核 */
	public static final int AUDITOR_STATUS_PENDING_AUDIT = 1;
	/** 审核通过 */
	public static final int AUDITOR_STATUS_AUDIT_PASS = 2;
	/** 否决 */
	public static final int AUDITOR_STATUS_REJECT = 3;
	/** 驳回 */
	public static final int AUDITOR_STATUS_TURNED_DOWN = 4;
	/** 收回 */
	public static final int AUDITOR_STATUS_TAKE_BACK = 5;

	/** 审核人类型:1，本人，2，加签，3，转移，4，知会 */
	public static final int AUDITOR_TYPE_SELF = 1;
	public static final int AUDITOR_TYPE_SIGN = 2;
	public static final int AUDITOR_TYPE_MOVE = 3;
	public static final int AUDITOR_TYPE_NOTIFY = 4;

	/** 是否有审核权限 Y:有,N:否 */
	public static final String AUDIT_PERMISSION_Y = "Y";
	public static final String AUDIT_PERMISSION_N = "N";
	/**是否显示到界面*/
	public static final String IS_DISPLAY_Y = "Y";
	public static final String IS_DISPLAY_N = "N";

	/** 节点审核人主键 */
	@Id
	@Column(name = "node_auditor_id")
	private String nodeAuditorId;

	/** 流程实例节点ID */
	@Column(name = "task_node_id")
	private String taskNodeId;

	/** 审核开始时间 */
	@Column(name = "auditor_start_date")
	private Date auditorStartDate;

	/** 审核人 */
	@Column(name = "auditor_no")
	private String auditorNo;

	/** 审核人姓名 */
	@Column(name = "auditor_name")
	private String auditorName;
	
	/** 审核人姓名 */
	@Column(name = "auditor_des")
	private String auditorDes;

	/** 是否有审核权限 */
	@Column(name = "has_audit_permission")
	private String hasAuditPermission;

	/** 是否显示到界面 */
	@Column(name = "is_display")
	private String isDisplay;

	/** 审核时间 */
	@Column(name = "auditor_date")
	private Date auditorDate;

	/** 审查状态 */
	@Column(name = "auditor_status")
	private Integer auditorStatus;

	/** 审核人类型（1，本人，2，加签，3，转移，4，知会） */
	@Column(name = "auditor_type")
	private Integer auditorType;

	/** 审核意见 */
	@Column(name = "audit_notes")
	private String auditNotes;

	/** 添加人编号 */
	@Column(name = "adder_id")
	private String adderId;

	/** 添加人姓名 */
	@Column(name = "adder_name")
	private String adderName;

	/** 操作人编号 */
	@Column(name = "oper_id")
	private String operId;

	/** 操作人姓名 */
	@Column(name = "oper_name")
	private String operName;
	
	/**加签类型*/
	@Column(name = "sign_type")
	private String signType;

	public String getNodeAuditorId() {
		return nodeAuditorId;
	}

	public void setNodeAuditorId(String nodeAuditorId) {
		this.nodeAuditorId = nodeAuditorId;
	}

	public String getTaskNodeId() {
		return taskNodeId;
	}

	public void setTaskNodeId(String taskNodeId) {
		this.taskNodeId = taskNodeId;
	}

	public Date getAuditorStartDate() {
		return auditorStartDate;
	}

	public void setAuditorStartDate(Date auditorStartDate) {
		this.auditorStartDate = auditorStartDate;
	}

	public String getAuditorNo() {
		return auditorNo;
	}

	public void setAuditorNo(String auditorNo) {
		this.auditorNo = auditorNo;
	}

	public String getAuditorName() {
		return auditorName;
	}

	public void setAuditorName(String auditorName) {
		this.auditorName = auditorName;
	}

	public Date getAuditorDate() {
		return auditorDate;
	}

	public void setAuditorDate(Date auditorDate) {
		this.auditorDate = auditorDate;
	}

	public Integer getAuditorStatus() {
		return auditorStatus;
	}

	public void setAuditorStatus(Integer auditorStatus) {
		this.auditorStatus = auditorStatus;
	}

	public Integer getAuditorType() {
		return auditorType;
	}

	public void setAuditorType(Integer auditorType) {
		this.auditorType = auditorType;
	}

	public String getAuditNotes() {
		return auditNotes;
	}

	public void setAuditNotes(String auditNotes) {
		this.auditNotes = auditNotes;
	}

	public String getAdderId() {
		return adderId;
	}

	public void setAdderId(String adderId) {
		this.adderId = adderId;
	}

	public String getAdderName() {
		return adderName;
	}

	public void setAdderName(String adderName) {
		this.adderName = adderName;
	}

	public String getOperId() {
		return operId;
	}

	public void setOperId(String operId) {
		this.operId = operId;
	}

	public String getOperName() {
		return operName;
	}

	public void setOperName(String operName) {
		this.operName = operName;
	}

	public String getHasAuditPermission() {
		return hasAuditPermission;
	}

	public void setHasAuditPermission(String hasAuditPermission) {
		this.hasAuditPermission = hasAuditPermission;
	}

	public String getIsDisplay() {
		return isDisplay;
	}

	public void setIsDisplay(String isDisplay) {
		this.isDisplay = isDisplay;
	}

	public String getAuditorDes() {
		return auditorDes;
	}

	public void setAuditorDes(String auditorDes) {
		this.auditorDes = auditorDes;
	}

	public String getSignType() {
		return signType;
	}

	public void setSignType(String signType) {
		this.signType = signType;
	}
}
